﻿import request from '/@/utils/request';
enum Api {
  AddKerryplususercoupon = '/api/kerryplususercoupon/add',
  DeleteKerryplususercoupon = '/api/kerryplususercoupon/delete',
  UpdateKerryplususercoupon = '/api/kerryplususercoupon/update',
  PageKerryplususercoupon = '/api/kerryplususercoupon/page',
  DetailKerryplususercoupon = '/api/kerryplususercoupon/detail',
}

// 增加优惠券
export const addKerryplususercoupon = (params?: any) =>
	request({
		url: Api.AddKerryplususercoupon,
		method: 'post',
		data: params,
	});

// 删除优惠券
export const deleteKerryplususercoupon = (params?: any) => 
	request({
			url: Api.DeleteKerryplususercoupon,
			method: 'post',
			data: params,
		});

// 编辑优惠券
export const updateKerryplususercoupon = (params?: any) => 
	request({
			url: Api.UpdateKerryplususercoupon,
			method: 'post',
			data: params,
		});

// 分页查询优惠券
export const pageKerryplususercoupon = (params?: any) => 
	request({
			url: Api.PageKerryplususercoupon,
			method: 'post',
			data: params,
		});

// 详情优惠券
export const detailKerryplususercoupon = (id: any) => 
	request({
			url: Api.DetailKerryplususercoupon,
			method: 'get',
			data: { id },
		});


